﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        struct PersonStruct
        {
            public string name;
            public int phone;
            public string dizhi;

        }
        static void Main(string[] args)
        {
            PersonStruct p1;
            p1.name = "lisi";
            p1.phone = 132183124;
            p1.dizhi = "qweqwdq";
            PersonStruct p2=p1;
            p2.name = "asd";
            Console.WriteLine(p1.name);
            PersonClass p3 = new PersonClass();
            p3.name = "lisi";
            p3.phone = 132183124;
            p3.dizhi = "qweqwdq";
            PersonClass p4 = p3;
            p4.name = "zhangsan";
            Console.WriteLine(p3.name);
        }
    }
}
